package com.yunqiao.service.api.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 投诉
 *
 * @author Crocutax
 * @email wangxw725@163.com
 * @date 2019-03-03 21:58:45
 */
@TableName("tb_complaint")
@Data
@ApiModel(value = "投诉对象")
public class ComplaintEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId
    @ApiModelProperty(value = "",hidden = true)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 评价者ID
     */
    @ApiModelProperty(value = "评价者ID")
    private Integer userId;
    /**
     * 被评价者ID
     */
    @ApiModelProperty(value = "被评价者ID")
    private Integer targetUserId;
    /**
     * 订单ID
     */
    @ApiModelProperty(value = "订单ID")
    private Integer orderId;
    /**
     * 投诉内容
     */
    @ApiModelProperty(value = "投诉内容")
    private String reporterContent;
    /**
     * 投诉图片
     */
    @ApiModelProperty(value = "投诉图片")
    private String reporterImg;
    /**
     * 回复投诉内容
     */
    @ApiModelProperty(value = "回复投诉内容")
    private String reportedContent;
    /**
     * 回复投诉图片
     */
    @ApiModelProperty(value = "回复投诉图片")
    private String reportedImg;
    /**
     * 结果:1待处理 2同意 3拒绝
     */
    @ApiModelProperty(value = "结果:1待处理 2同意 3拒绝")
    private Integer status;
    /**
     * 退款金额
     */
    @ApiModelProperty(value = "退款金额")
    private BigDecimal amount;

    /**
     * 过期时间
     */
    @ApiModelProperty(value = "过期时间")
    @TableField(exist = false)
    private Date expirationTime;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间",hidden = true)
    private Date updateTime;
    /**
     * 软删除
     */
    @TableLogic
    @JsonIgnore
    @ApiModelProperty(value = "软删除" , hidden = true)
    private Integer deleted;

}
